package com.jvxb.manage.livable.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jvxb.manage.livable.entity.WorkOrder;
import com.jvxb.manage.livable.vo.WorkOrderOperateVo;

import java.util.List;
import java.util.Map;

/**
 * @author jvxb
 * @since 2022-01-07
 */
public interface WorkOrderService extends IService<WorkOrder> {

    boolean save(WorkOrder workOrder);

    void approve(WorkOrderOperateVo operateVo);

    void operate(WorkOrderOperateVo operateVo) throws Exception;

    void executeSuccess(WorkOrderOperateVo operateVo);

    void executeFail(Long workOrderId, String errMsg);

    void informUser(String userCode);

    void informUsers(List<String> userCodeList);

    Map getInformMsgMap(String userId);

    void executeWorkOrder(WorkOrderOperateVo operateVo);
}
